package com.bysc.commentservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bysc.commentservice.entity.CommentSon;
import com.bysc.commentservice.entity.vo.CommentFormVo;
import com.bysc.commentservice.entity.vo.CommentQueryVo;
import com.bysc.commentservice.entity.vo.SonCommentFormVo;
import com.bysc.commonutils.vo.PageResult;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author kkk
 * @since 2024-06-15
 */
public interface CommentSonService extends IService<CommentSon> {
    PageResult getSonCommentListByTokenAndPpCommentIdOrderByCreatTime(String userId, Object id, Integer page, Integer limit);
    void updateSonCommentById(CommentFormVo sonCommentFormVo, Object id);

    CommentSon deleteSonCommentById(Object id);

    CommentSon addSonCommentByCommentFormVoAndToken(SonCommentFormVo sonCommentFormVo, String userId);

    PageResult getSonCommentListByTokenAndPpCommentIdOrderBylike(String userId, Object id, Integer page, Integer limit);

    PageResult getAllSonCommentListByQueryVoOrderByCreatTime(Integer page, Integer limit, CommentQueryVo queryVo);
}
